package com.serkol.ams.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName sys_category
 */
@TableName(value ="sys_category")
@Data
public class SysCategory implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Date date;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String nameUg;

    /**
     * 
     */
    private String path;

    /**
     * 
     */
    private String page;

    /**
     * 
     */
    private Long sort;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Long parentId;

    /**
     * 
     */
    private String permission;

    /**
     * 
     */
    private Long imageId;

    /**
     * 
     */
    private Integer targetType;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private Long otherId;

    /**
     * 
     */
    private boolean flagIcon;

    /**
     * 
     */
    private boolean flagTitle;

    /**
     * 
     */
    private Integer type;

    /**
     * 
     */
    private Integer col;

    /**
     * 
     */
    private boolean grid;

    /**
     * 
     */
    private Integer size;

    /**
     * 
     */
    private Integer deleted;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", date=").append(date);
        sb.append(", name=").append(name);
        sb.append(", nameUg=").append(nameUg);
        sb.append(", path=").append(path);
        sb.append(", page=").append(page);
        sb.append(", sort=").append(sort);
        sb.append(", status=").append(status);
        sb.append(", parentId=").append(parentId);
        sb.append(", permission=").append(permission);
        sb.append(", imageId=").append(imageId);
        sb.append(", targetType=").append(targetType);
        sb.append(", appid=").append(appid);
        sb.append(", otherId=").append(otherId);
        sb.append(", flagIcon=").append(flagIcon);
        sb.append(", flagTitle=").append(flagTitle);
        sb.append(", type=").append(type);
        sb.append(", col=").append(col);
        sb.append(", grid=").append(grid);
        sb.append(", size=").append(size);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}